package com.yuewen.test3;

import com.yuewen.test1.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by liwei.b on 2017/6/22.
 */
@Service
public class UserService {
    @Autowired
    private Car car;

    @Loggable(className = "UserService", methodName = "getById")
    public String getById(long id) {

        car.go("1231", 32234234);

        return "francis";
    }
}
